\section{model::dom\_\-policy Class Reference}
\label{classmodel_1_1dom__policy}\index{model::dom_policy@{model::dom\_\-policy}}
{\tt \#include $<$dom\_\-policy.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\bf{dom\_\-policy} ()
\item 
\bf{$\sim$dom\_\-policy} ()
\item 
iksparser $\ast$ \bf{create} ()
\item 
boost::shared\_\-ptr$<$ \bf{model::dom} $>$ \bf{get\_\-node} ()
\item 
const boost::shared\_\-ptr$<$ \bf{model::dom} $>$ \bf{get\_\-node} () const 
\end{CompactItemize}


\subsection{Detailed Description}
This class is a policy for the parser-class, which creates a dom-parser. \begin{Desc}
\item[Author:]Michael Opitz $<$\tt{opitz.michael@gmail.com}$>$ \end{Desc}
\begin{Desc}
\item[Version:]0.1 \end{Desc}




Definition at line 37 of file dom\_\-policy.h.

\subsection{Constructor \& Destructor Documentation}
\index{model::dom_policy@{model::dom\_\-policy}!dom_policy@{dom\_\-policy}}
\index{dom_policy@{dom\_\-policy}!model::dom_policy@{model::dom\_\-policy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}model::dom\_\-policy::dom\_\-policy ()}\label{classmodel_1_1dom__policy_de1aed2528d66ff1cd9c937ebaaa3986}


Does basically nothing. 

Definition at line 3 of file dom\_\-policy.cpp.

\begin{Code}\begin{verbatim}4 {
5 
6 }
\end{verbatim}\end{Code}


\index{model::dom_policy@{model::dom\_\-policy}!~dom_policy@{$\sim$dom\_\-policy}}
\index{~dom_policy@{$\sim$dom\_\-policy}!model::dom_policy@{model::dom\_\-policy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}model::dom\_\-policy::$\sim$dom\_\-policy ()}\label{classmodel_1_1dom__policy_e536ac859b5a05f3e29ebe136433b63f}


Does basically nothing. 

Definition at line 8 of file dom\_\-policy.cpp.

\begin{Code}\begin{verbatim}9 {
10 
11 }
\end{verbatim}\end{Code}




\subsection{Member Function Documentation}
\index{model::dom_policy@{model::dom\_\-policy}!create@{create}}
\index{create@{create}!model::dom_policy@{model::dom\_\-policy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}iksparser $\ast$ model::dom\_\-policy::create ()}\label{classmodel_1_1dom__policy_6fb6c2934c26dba456cbc610aac52ba4}


This method is called by the inherited parser-class and creates a dom-parser. \begin{Desc}
\item[Returns:]a iksparser-object is returned. \end{Desc}


Definition at line 13 of file dom\_\-policy.cpp.

\begin{Code}\begin{verbatim}14 {
15         iks *tmp;
16         node.reset(new model::dom(tmp));
17         iksparser *parser = iks_dom_new(&node->node);
18         return parser;
19 }
\end{verbatim}\end{Code}


\index{model::dom_policy@{model::dom\_\-policy}!get_node@{get\_\-node}}
\index{get_node@{get\_\-node}!model::dom_policy@{model::dom\_\-policy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const boost::shared\_\-ptr$<$\bf{model::dom}$>$ model::dom\_\-policy::get\_\-node () const\hspace{0.3cm}{\tt  [inline]}}\label{classmodel_1_1dom__policy_73953392c6638b20848e78e2484ed89a}


This method returns the dom-tree for the parsed xml-string. \begin{Desc}
\item[Returns:]A pointer to the dom-node is returned. \end{Desc}


Definition at line 64 of file dom\_\-policy.h.

\begin{Code}\begin{verbatim}65                 {
66                         return node;
67                 }
\end{verbatim}\end{Code}


\index{model::dom_policy@{model::dom\_\-policy}!get_node@{get\_\-node}}
\index{get_node@{get\_\-node}!model::dom_policy@{model::dom\_\-policy}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}boost::shared\_\-ptr$<$\bf{model::dom}$>$ model::dom\_\-policy::get\_\-node ()\hspace{0.3cm}{\tt  [inline]}}\label{classmodel_1_1dom__policy_f504df3ff201b4795760f0b441c686e2}


This method returns the dom-tree for the parsed xml-string. \begin{Desc}
\item[Returns:]A pointer to the dom-node is returned. \end{Desc}


Definition at line 59 of file dom\_\-policy.h.

\begin{Code}\begin{verbatim}59 {return node;}
\end{verbatim}\end{Code}




The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
model/dom\_\-policy.h\item 
model/dom\_\-policy.cpp\end{CompactItemize}
